def generate_frpc_config(server_config, client_configs):
    """生成frpc配置文件内容"""
    config_lines = [
        f'serverAddr = "{server_config["server_addr"]}"',
        f'serverPort = {server_config["server_port"]}',
        f'auth.token = "{server_config["token"]}"',
        ''
    ]
    
    for i, client in enumerate(client_configs):
        if i == 0:
            config_lines.append('[[proxies]]')
        else:
            config_lines.append('\n[[proxies]]')
        config_lines.extend([
            f'name = "{client["name"]}"',
            f'type = "{client["type"]}"',
            f'localIP = "{client["local_ip"]}"',
            f'localPort = {client["local_port"]}',
            f'remotePort = {client["remote_port"]}'
        ])
    
    return '\n'.join(config_lines)
